package com.cloudea.lotus.common;

import java.util.LinkedList;
import java.util.List;

public class TokenManager {
    private List<String> initTokes = new LinkedList<>();
    private List<String> dynamicTokens = new LinkedList<>();

    public TokenManager(List<String> staticTokens){
        initTokes.addAll(staticTokens);
    }

    public void setDynamicTokens(List<String> dynamicTokens) {
        this.dynamicTokens = dynamicTokens;
    }

    public List<String> getTokens(){
        List<String> tokens = new java.util.ArrayList<>(initTokes);
        tokens.addAll(dynamicTokens);
        return tokens;
    }
}
